package com.reptile.service.execute;

import com.reptile.constant.YsReptileConstant;
import com.reptile.service.BaseExecute;
import com.reptile.util.HttpClientDownPage;
import com.reptile.util.TechnologyDataUtil;
import org.jsoup.Jsoup;

import java.util.List;

/**
 * 开源中国-数据库专区
 * @author songyafei
 */
public class KaiYDataBaseExecute implements BaseExecute {


    @Override
    public List baseExecute() {
        String btcText = HttpClientDownPage.sendGet(YsReptileConstant.KAI_DATA_BASE_NEWS_URL);
        return TechnologyDataUtil.KYDatabaseNewsParseList(Jsoup.parse(btcText));
    }

    @Override
    public List baseExecute(Object data) {
        return null;
    }
}
